package com.huilian.iotbox.data.enums;

import lombok.Getter;

/**
 * 返回前端的错误描述
 * @author chenqiwen
 * @CreateDate: 2021-05-08-18-08
 * @Description:
 */
@Getter
public enum ErrorMsgEnum {
    USER_INFO_ERROR("获取用户信息失败，请退出重新进入",""),
    DEVICE_NOT_FOUND("找不到该设备",""),
    INSERT_COIN_FAIL_BY_NO_NETWORK("请检查是否开机，网络是否正常",""),
    DEVICE_SOLD_OUT("该设备已下架",""),
    DEVICE_MALFUNCTION("该设备发生故障",""),
    USER_NOT_SUFFICIENT_FUNDS("余币不足",""),
    DEVICE_IS_UPPING("设备运行中，请稍后重试",""),
    BALANCE_DEDUCTION_FAILED("扣除余额失败，请稍后重试",""),
    UNBOUND_STORES("设备未绑定场地",""),
    HAVE_UNBUNDLING("设备已与场地解绑",""),
    DEVICE_OFLINE("%s设备不在线",""),
    MERCHANT_STORE_NOT_FOUND("当前场地不存在，请联系管理员",""),
    MERCHANT_STORE_NOT_ASSOCIATED_MERCHANT("请商家前往管理后台的“场地管理->编辑->收款商户”关联商户",""),
    PACKAGE_NOT_FOUND("您选择的套餐不存在，请重新选择",""),
    THE_PURCHASE_QUANTITY_CANNOT_BE_LESS_THAN_0("购买的数量不能小于0",""),
    THE_PURCHASE_QUANTITY_CANNOT_BE_200_COIN("购币数量不能操作200币",""),
    DEVICE_OFF_LINE("%s设备已下架",""),
    DEVICE_FAULT("%s设备发生故障",""),
    DEVICE_NON_ACTIVATED("%s设备未激活",""),
    DEVICE_UNBIND("%s设备未绑定",""),
    PARAM_NOT_FOUND("%s设备调试投币次数已上限",""),
    ;

    private String msg;
    private String desc;

    ErrorMsgEnum(String msg, String desc) {
        this.msg = msg;
        this.desc = desc;
    }
}
